﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using KeRui.Common;
using System.Collections.Generic;

public partial class Manage_Cms_CatchList : System.Web.UI.Page
{
    protected List<KeRui.Model.CmsCatch> listCmsCatch;
    protected KeRui.Model.CmsServer modelServer = new KeRui.Model.CmsServer();
    public int ServerID = -1;
    protected KeRui.BLL.CmsServer bllCmsServer = new KeRui.BLL.CmsServer();

    public int SiteID = PageRequest.GetInt("siteid", -1);

    public KeRui.BLL.CmsSite bllSite = new KeRui.BLL.CmsSite();
    
    protected void Page_Load(object sender, EventArgs e)
    {
        ManageHelper.CheckAdminLogin();//登陆判断
        //权限
        ManageHelper.CheckAdminPower("system_catchview");
        ServerID = bllCmsServer.GetServerIDByIP(PageRequest.GetServerIP());
        KeRui.BLL.CmsCatch bllCmsCatch = new KeRui.BLL.CmsCatch();

        if(SiteID>0)
            listCmsCatch = bllCmsCatch.GetList(ServerID,SiteID);
        else
            listCmsCatch = bllCmsCatch.GetList(ServerID);

        modelServer = bllCmsServer.GetModel(ServerID);
        
        
    }
}
